package gmusic.mb.bo;

import gmusic.bo.TrackBean;

import java.sql.ResultSet;
import java.sql.SQLException;

public class TrackMBBean extends TrackBean {

	protected String mbid = null;

	protected String releaseMbid = null;

	public TrackMBBean() {

	}

	public TrackMBBean(ResultSet rs) throws SQLException {

		setMaid(rs.getLong("mbid"));
		setReleaseMbid(rs.getString("release_mbid"));
		setNumero(rs.getInt("num"));
		setNom(rs.getString("nom"));
		setDuree(rs.getInt("duree"));
	}

	public String getMbid() {
		return mbid;
	}

	public void setMbid(String mbid) {
		this.mbid = mbid;
	}

	public String toString() {
		return "[mbid=" + mbid + ";release_id=" + releaseId + ";disc=" + disc
				+ ";num=" + numero + ";titre=" + nom + ";duree=" + duree + "]";
	}

	public String getReleaseMbid() {
		return releaseMbid;
	}

	public void setReleaseMbid(String releaseMbid) {
		this.releaseMbid = releaseMbid;
	}
}
